package cn.tj212.xiaoyin.util;

import org.springframework.util.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ValidateUtil {

    private static Pattern mobilePattern=Pattern.compile("1\\d{10}");

    public static Boolean isMobile(String mobile){
        if (StringUtils.isEmpty(mobile)){
            return false;
        }
        Matcher matcher=mobilePattern.matcher(mobile);
        return matcher.matches();
    }
}
